﻿
<%@ Page Title="" Language="C#" MasterPageFile="~/PatientPage.master" AutoEventWireup="true" CodeFile="MyReg.aspx.cs" Inherits="MyReg" Theme="TextBox" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <span class="tr">
        <center>我 的 挂 号</center>
    </span>
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
    CellPadding="4" ForeColor="#333333" GridLines="None" HorizontalAlign="Center" 
    onrowdatabound="GridView1_RowDataBound" onrowdeleting="GridView1_RowDeleting" 
        CellSpacing="3" AllowPaging="True" 
        onpageindexchanging="GridView1_PageIndexChanging" PageSize="13">
        <AlternatingRowStyle BackColor="White" />
        <Columns>
            <asp:TemplateField HeaderText="挂号编号">
                <EditItemTemplate>
                    <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("RegID") %>'></asp:TextBox>
                </EditItemTemplate>
                <ItemTemplate>
                    <asp:Label ID="Label1" runat="server" Text='<%# Bind("RegID") %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField DataField="DocName" HeaderText="医生姓名" />
            <asp:BoundField DataField="DepName" HeaderText="科室" />
            <asp:BoundField DataField="DauyDate" HeaderText="门诊日期" DataFormatString="{0:d}" />
            <asp:BoundField DataField="VisTime" HeaderText="就诊时间"  />
            <asp:BoundField DataField="ConsultationRoom" HeaderText="就诊地点" />
            <asp:BoundField DataField="RegTime" HeaderText="挂号时间" />
            <asp:TemplateField HeaderText="就诊状态">
                <EditItemTemplate>
                    <asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("VisStatus") %>'></asp:TextBox>
                </EditItemTemplate>
                <ItemTemplate>
                    <asp:Label ID="Label2" runat="server" Text='<%# Bind("VisStatus") %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:CommandField DeleteText="退号" ShowDeleteButton="True" />
        </Columns>
        <EditRowStyle BackColor="#2461BF" />
        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
        <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Right" />
        <RowStyle BackColor="#EFF3FB" />
        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
        <SortedAscendingCellStyle BackColor="#F5F7FB" />
        <SortedAscendingHeaderStyle BackColor="#6D95E1" />
        <SortedDescendingCellStyle BackColor="#E9EBEF" />
        <SortedDescendingHeaderStyle BackColor="#4870BE" />
    </asp:GridView>
</asp:Content>

